package com.wowangz.cms.dailyoperation.services.service;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.wowangz.cms.dailyoperation.services.pojo.Menu;
import com.wowangz.cms.syscore.exception.ServiceException;
import com.wowangz.cms.syscore.service.BaseService;

public class MenuService extends BaseService{

	public List<Menu> queryMenuLevelTopList(Map map) throws ServiceException{
		List<Menu> list = this.getSqlSession().selectList("Menu.queryMenuLevelTopList",map);
		return list;
	}
	
	public List<Menu> queryOtherMenuList(HashMap map) throws ServiceException{
		List<Menu> list = this.getSqlSession().selectList("Menu.queryOtherMenuList",map);
		return list;
	}
	
	public boolean isParent(Map map) throws ServiceException{
		List<Menu> list = this.getSqlSession().selectList("Menu.queryisParent",map);
		if(list!=null && list.size()>1){
			return true;
		}else{
			return false;
		}
	}
	
	public List<Menu> queryMenuAll(HashMap map) throws ServiceException{
		List<Menu> list = this.getSqlSession().selectList("Menu.queryMenuAll", map);
		return list;
	}
}
